1 package com.puppycrawl.tools.checkstyle.checks.javadoc.abstractjavadoc;
2
3 /**
4 * <body>
5 * <p> This class is only meant for testing. </p>
6 * <p> In html, closing all tags is not necessary.
7 * <li> neither is opening every tag <p> </li>
8 * </body>
9 *
10 * @see "https://www.w3.org/TR/html51/syntax.html#optional-start-and-end-tags"
11 */
12 public class InputAbstractJavadocNonTightHtmlTags {
13 /** <p> <p> paraception </p> </p> */
14 private int field1;
15
16 /**<li> paraTags should be opened</p> list isn't nested in parse tree </li>*/
17 private int field2;
18
19 /**
20 * <p> this paragraph is closed and would be nested in javadoc tree </p>
21 * <li> this list has an <p> unclosed para, but still the list would get nested </li>
22 */
23 private int field3;
24
25 /**
26 * <li> Complete <p> nesting </p> </li>
27 * <tr> Zero </p> nesting despite `tr` is closed </tr>
28 */
29 private int field4;
30
31 /**
32 * <p> <a href="www.something.com">something</a> paragraph with `htmlTag` </p>
33 * <p> <a href="www.something.com"/> Nested paragraph with `singletonTag` </p>
34 * <li> Outer tag <li> Inner tag nested </li> not nested </li>
35 */
36 private int field5;
37
38 /**
39 * <th> !isNonTight </th>
40 * <th> th with <base/> singletonElement </th>
41 * <body> body with <br/> singletonElement </body>
42 * <colgroup><col><col><col></colgroup>
43 * <dd> dd with <hr> singletonElement </dd>
44 * <dt> dt with <img src="~/singletonElement.jpg" alt="" width="100" height="150"/>
45 * singletonElement </dt>
46 * <head> head with <img src="~/singletonElement.jpg" alt="" width="100" height="150">
47 * singletonElement </head>
48 */
49 private int field6;
50
51 /**
52 * <body> body <p> paragraph <li> list </li> </p> </body>
53 *
54 * @return <li> <li> outer list isn't nested in parse tree </li> </li>
55 */
56 int getField1() {return field1;}
57
58 /***/
59 int getField2() {return field2;} //method with empty javadoc
60
61 /**
62 * <tr> <li> list is going to be nested in the parse tree </li> </tr>
63 *
64 * @param field1 {@code <p> paraTag will not be recognized} in javadoc tree </p>
65 */
66 void setField1(int field1) {this.field1 = field1;}
67
68 /**
69 * <p>This is a setter method.
70 * And paraTag shall be nested in parse tree </p>
71 * @param field2 <p> setter
72 */
73 void setField2(int field2) {this.field2 = field2;}
74
75 /**
76 * <p> paragraph with a <br>singletonElement. <hr> And it contains another one. </p>
77 * <li> List with singletonElement
78 * <param name=mov value="~/imitation game.mp4"> <param name=allowfullscreen value=true> </li>
79 * @return <tr> tr with <base href="www.something.com"> singletonElement </tr>
80 * <tr> nonTight </th>
81 */
82 private int getField3() {return field3;}
83
84 /**
85 * @param field3 <td> td with singletonElement <br/> </td>
86 */
87 private void setField3(int field3) { this.field3 = field3;}
88
89 /**
90 * <html> <bR> <Br> <BR> <Br/> <BR/> <bR/> </html>
91 * <option> <INPut/> </option>
92 * @return <tbody> <input/> <br> </tbody>
93 */
94 private int getField4() {return field4;}
95
96 /**
97 * <thead> <br> </thead>
98 * <tfoot> <AREA ALT="alt" COORDS="100,0,200,50" HREF="/href/"> </tfoot>
99 * <p> </p>
100 * @param field4 value to which {@link #field4} is to be set to
101 */
102 private void setField4(int field4) {this.field4 = field4;}
103
104 /**
105 * <li> </li>
106 * <TR> </tr>
107 * <Td> </td>
108 * <tH> </th>
109 * <body> </body>
110 * <colGROUP> </COLgroup>
111 * <DD> </dd>
112 * <dt> </dt>
113 * <Head> </head>
114 * <HTML> </HTML>
115 * <option> </option>
116 * <tBody> </TbODY>
117 * <tHead> </ThEAD>
118 * <tFoot> </TfOOT>
119 * @param field5 value to which {@link #field5} is to be set to
120 */
121 private void setField5(int field5) {this.field5 = field5;}
122
123 /**
124 * <p> <li> <TR> <Td> <tH> <body> <colGROUP> <DD> <dt> <Head> <HTML> <option> <tBody> <tHead>
125 * <tFoot>
126 * @param field6 </p> value to which {@link #field6} is to be set to
127 */
128 private void setField6(int field6) {this.field6 = field6;}
129 }